<script>
	export default {
		globalData: {

		},
		async onLaunch(option) {
			console.log('App Launch')

			let that = this

			// 获取导航高度；
			uni.getSystemInfo({
				success: function(res) {
					that.globalData.navHeight = res.statusBarHeight * (750 / res.windowWidth) + 91;
				}
			});
			let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
			that.globalData.navH = menuButtonInfo.top * 2 + menuButtonInfo.height / 2;
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},

		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		font-family: PingFang SC;
		background-color: #F2EEE7;
		color: $uni-text-color;
	}

	.btn {
		font-size: 32rpx;
		line-height: 96rpx;
		color: #1A1311;
		border: 1rpx solid #ddd;
		border-radius: 48rpx;
		background-color: #fff;

		&.primary {
			background-color: #1A1311;
			color: #fff;
			border-color: #1A1311;
		}
	}
</style>
